﻿$('.product-holder .product-box').live('click', function () {

    var text = $(this).find("h1").text().trim();
  
    if (text == "National ADSL2+") {
        $.cookie("MainCookie", null, { path: '/', expires: -5 });
        var obj = 3 + '|' + 3 + '|' + text;
        $.cookie("MainCookie", obj, { path: '/', expires: 1 });
      
    }
    else if (text == "Naked DSL") {
        $.cookie("MainCookie", null, { path: '/', expires: -5 });
        var obj = 4 + '|' + 4 + '|' + text;
        $.cookie("MainCookie", obj, { path: '/', expires: 1 });
    }
    else if (text == "Regional ADSL") {
        $.cookie("MainCookie", null, { path: '/', expires: -5 });
        var obj = 5 + '|' + 5 + '|' + text;
        $.cookie("MainCookie", obj, { path: '/', expires: 1 });
    }
    else if (text == "TransACT") {
        $.cookie("MainCookie", null, { path: '/', expires: -5 });
        var obj = 1 + '|' + 1 + '|' + text;
        $.cookie("MainCookie", obj, { path: '/', expires: 1 });
    }
    else {
        $.cookie("MainCookie", null, { path: '/', expires: -5 });
    }

});